package com.ruibang.glass.produce.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruibang.glass.produce.domain.req.HotSingleBoardDefectReq;
import com.ruibang.glass.produce.domain.req.StirringRodTrendChart;
import com.ruibang.glass.produce.domain.resp.HotSingleBoardDefectSummary;
import com.ruibang.glass.produce.domain.resp.HotSingleBoardFlowTrendChart;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-05-15  10:40
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface HotSingleBoardDefectMapper {

    HotSingleBoardDefectSummary defectSummary(@Param("defectReq") HotSingleBoardDefectReq hotSingleBoardDefectReq);

    List<HotSingleBoardDefectSummary> defectQuantityTrendChart(@Param("defectReq") HotSingleBoardDefectReq hotSingleBoardDefectReq);

    IPage<HotSingleBoardDefectSummary> pageQuery(Page<HotSingleBoardDefectSummary> page,@Param("defectReq") HotSingleBoardDefectReq hotSingleBoardDefectReq);

    @DS("click_cz")
    List<HotSingleBoardFlowTrendChart> flowTrendChart(@Param("defectReq") HotSingleBoardDefectReq hotSingleBoardDefectReq);

    @DS("click_dcs")
    List<StirringRodTrendChart> stirringRodTrendChart(@Param("defectReq") HotSingleBoardDefectReq hotSingleBoardDefectReq);
}
